package com.sun.StudentInfo.service.impl;

import com.sun.StudentInfo.mapper.ProfessionMapper;
import com.sun.StudentInfo.service.ProfessionService;
import com.sun.StudentInfo.pojo.Profession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProfessionServiceImpl implements ProfessionService {

    @Autowired
    private ProfessionMapper professionMapper;

    /**
     * 根据专业id查询专业和学院
     *
     * @param proId 专业id
     */
    @Override
    public Profession getProfessionByProId(String proId) {
        return professionMapper.getProfessionById(proId);
    }
}
